-- GENERATED SPELL FOR [Kerna] --


function spell0_18807(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(22121,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18807', 601, 1)
end

function Sorts_18807(pUnit, Event)
local choix_sorts_18807 = math.random(0, 0)
if choix_sorts_18807 == 0 then
pUnit:RegisterEvent('spell0_18807', 1, 1)
end
end

function mob18807_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18807', math.random(1500, 3000), 1)
end

function mob18807_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18807_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18807_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18807, 1, 'mob18807_Action')
RegisterUnitEvent(18807, 2, 'mob18807_Leave')
RegisterUnitEvent(18807, 3, 'mob18807_Kill')
RegisterUnitEvent(18807, 4, 'mob18807_Die')
